Pre-decrement rather than post-decrement in shadow32.c.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 6 Dec 2005 11:49:05 +0000 (12:49 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 6 Dec 2005 11:49:05 +0000 (12:49 +0100)
Already fixed in shadow.c.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
xen/arch/x86/shadow32.c

index 9d372ac4debf92e2e79454cdef2cf6781a388257..298fdb1a5d8f0bd82e21b5c02fa2204eb473ef66 100644 (file)
@@ -2203,7 +2203,7 @@ int shadow_remove_all_write_access(
     }
     
     if ( shadow_mode_external(d) ) {
-        if (write_refs-- == 0) 
+        if (--write_refs == 0) 
             return 0;
 
          // Use the back pointer to locate the shadow page that can contain